package com.chezhujie.www.domain;

import com.chezhujie.www.core.init.mysql.BaseEntity;
import com.chezhujie.www.core.init.mysql.annotation.Column;
import com.chezhujie.www.core.init.mysql.annotation.Id;
import com.chezhujie.www.core.init.mysql.annotation.Table;

import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/6/27.
 */
//@Entity
@Table(name="czj_xy_column",describe = "表属性")
public class Xycolumn extends BaseEntity{
    @Id
    @Column(describe = "主键",length = 19,inputType = "hidden")
    private String columnId;
    @Column(describe = "属性名",length = 19)
    private String name;
    @Column(describe = "表名",length = 19,inputType = "select",inputCode = "str")
    private String tableId;
    @Column(describe = "java属性类型",length = 50,inputType = "select",inputCode = "columntype")
    private Integer columntype;//类型 主要有：java.math.BigDecimal、java.util.Date、java.lang.Integer、java.lang.String
    @Column(describe = "长度",length = 5)
    private Integer length;//长度
    @Column(describe = "默认值",length = 19)
    private String defalt;//默认值
    @Column(describe = "中文解释",length = 50)
    private String describe;//描述
    @Column(describe = "是否主键",length = 1)
    private Integer isprimary;//表主键
    @Column(describe = "创建时间",inputType = "date")
    private Date createtime;//创建时间
    private Date createtimeStart;//开始创建时间
    private Date createtimeEnd;//结束创建时间
    @Column(describe = "最后更新时间",inputType = "date")
    private Date updatetime;//最后更新时间
    private Date updatetimeStart;
    private Date updatetimeEnd;


    public String getColumnId() {
        return columnId;
    }

    public void setColumnId(String columnId) {
        this.columnId = columnId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public Integer getColumntype() {
        return columntype;
    }

    public void setColumntype(Integer columntype) {
        this.columntype = columntype;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getDefalt() {
        return defalt;
    }

    public void setDefalt(String defalt) {
        this.defalt = defalt;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Integer getIsprimary() {
        return isprimary;
    }

    public void setIsprimary(Integer isprimary) {
        this.isprimary = isprimary;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getCreatetimeStart() {
        return createtimeStart;
    }

    public void setCreatetimeStart(Date createtimeStart) {
        this.createtimeStart = createtimeStart;
    }

    public Date getCreatetimeEnd() {
        return createtimeEnd;
    }

    public void setCreatetimeEnd(Date createtimeEnd) {
        this.createtimeEnd = createtimeEnd;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getUpdatetimeStart() {
        return updatetimeStart;
    }

    public void setUpdatetimeStart(Date updatetimeStart) {
        this.updatetimeStart = updatetimeStart;
    }

    public Date getUpdatetimeEnd() {
        return updatetimeEnd;
    }

    public void setUpdatetimeEnd(Date updatetimeEnd) {
        this.updatetimeEnd = updatetimeEnd;
    }
}
